<template>
  <div>
    <!-- slot 插槽标签 -->
    <!-- vue规定:每一个slot插槽,都要有一个name名称,如果没有书写,则默认name的值是default -->
    <slot name="content" :list="list"></slot>
  </div>
</template>

<script>
export default {
  name: "Tab",
  data() {
    return {
      list: [
        {id: '01', thing: '抽烟'},
        {id: '02', thing: '喝酒'},
        {id: '03', thing: '烫头'},
      ]
    }
  }
};
</script>

<style>
</style>